import { request } from '../utils/request';

export async function getNewUserData(params) {
  return request('adminapi/user/getNewUserData', {
    method: 'POST',
    body: params,
  });
}

export async function getTodayNewPayUser(params) {
  return request('adminapi/user/getNewPayUserData', {
    method: 'POST',
    body: params,
  });
}

export async function getTodaySNUser(params) {
  return request('adminapi/user/getActiSnData', {
    method: 'POST',
    body: params,
  });
}

export async function getTodayActiUser(params) {
  return request('adminapi/user/getActiUser', {
    method: 'POST',
    body: params,
  });
}

export async function getTodayOrders(params) {
  return request('adminapi/orders/getOrdersData', {
    method: 'POST',
    body: params,
  });
}

export async function getTodayRev(params) {
  return request('adminapi/orders/getRevData', {
    method: 'POST',
    body: params,
  });
}

export async function sevenDaysMember(params) {
  return request('adminapi/user/getNewUserDataList', {
    method: 'POST',
    body: params,
  });
}

export async function orderAndRevenue(params) {
  return request('adminapi/orders/getOrdersRevDataList', {
    method: 'POST',
    body: params,
  });
}

export async function sevenDaysApp(params) {
  return request('adminapi/user/getActiApp', {
    method: 'POST',
    body: params,
  });
}

export async function DAUAppRate(params) {
  return request('adminapi/user/getActiAppRate', {
    method: 'POST',
    body: params,
  });
}




